<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="default"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="format-detection" content="telephone=no, email=no"/>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="fonts/iconfont.css">
    <link rel="stylesheet" href="css/new-detail.css">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<script src="js/head.js"></script>


<div class="detail">
    <div class="wrap" id="detail">
        <h2 class="title"></h2>
        <div class="info"></div>
        <hr>
        <div class="text"></div>
    </div>
</div>

<script src="js/footer.js"></script>

<script>
    $(function () {
        function getRequest() {
            var url = window.location.search;
            var theRequest = new Object();
            if (url.indexOf("?") != -1) {
                var str = url.substr(1);
                strs = str.split("&");
                for(var i = 0; i < strs.length; i ++) {

                    theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]);

                }
            }
            return theRequest;
        }
        var id= getRequest().id;
        $.ajax({
            url: "http://xcx.ec51.com:9039/outp.php",
            type: "get",
            data: {
                "id":id
            },
            dataType: "json",
            success: function (data) {
                var title = data.title,
                    date = '时间：'+data.created_at,
                    content = data.content;
                $(".title").html(title);
                $(document).attr("title","芯呼电销机器人 - "+title);
                $(".info").html(date);
                $(".text").html(content);
            },
            error:function (e) {
                // console.log(e)
            }
        })
    });
</script>
</body>
</html>